/* The Wall - (C) 1995 by Jonas Peregrin/MATRiX */
options results;gu=getuser;tr=transmit;sf=sendfile;walldata="pfiles:thewall/wall.data";wall_header="pfiles:thewall/wall.hdr";wall_bottom="pfiles:thewall/wall.btm";call display_wall;call addwall;exit;display_wall:;call open rdata,walldata,"R";do dta=1 to 5
;text.dta=readln(rdata);author.dta=readln(rdata);end;call close rdata;sf wall_header;do dta=1 to 5;tr "cc"||author.dta||"cd sagte: ";tr "ca"||text.dta;end;sf wall_bottom;return;addwall:;prompt 1 YESNO '"caEinen Spruch an die Wand kleistern cb[Ja]? c
e"';if left(upper(result),1)="Y" then call write_one;call display_wall;tr 'cf-cd[ccTceastecd]cf-g0';exit;write_one:;gu 1;handle=result;author.6=handle;prompt 70 NORMAL '"cfUnd jetzt Deinen Text, Hoschin1cc:ca"';hia=result;if hia="" then hia="Bu
nt ist das Dasein und Granatenstark";text.6=hia;if hia="###PANIC" then exit;call open daa,walldata,"W";do dta=2 to 6;writeln(daa,text.dta);writeln(daa,author.dta);end;call close daa;return